import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DECO_HDM_PROD: AppRouteRecordRaw = {
  path: '/deco-hdm-prod',
  name: 'DecoHdmProd',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '产品中心',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: '/deco-hdm-prod-product',
      name: 'DecoHdmProdProduct',
      component: () => import('@/views/deco/hdm-prod/product/list/index.vue'),
      meta: {
        locale: '套餐管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-hdm-prod-constr',
      name: 'DecoHdmProdConstr',
      component: () => import('@/views/deco/hdm-prod/constr/list/index.vue'),
      meta: {
        locale: '施工管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DECO_HDM_PROD;
